<?php

class Application_Form_ResendAkt extends Zend_Form {

    public function init() {

        $email = new Zend_Form_Element_Text('email', array(
                    'label' => 'Email'
                ));
        $email->setRequired(true);
        $email->addValidator('notEmpty')->addValidator('EmailAddress');

        $login = new Zend_Form_Element_Text('login', array(
                    'label' => 'Login'
                ));
        $login
                ->setRequired(true)
                ->addValidator('notEmpty')
                ->addValidator('stringLength', false, array(3, 16));

        $this->addDisplayGroup(array(
            $email, $login
                ), 'gr-main');
        $submit = new Zend_Form_Element_Submit('submitPassword', array(
                    'label' => 'Wyślij',
                    'class' => 'ui-form-button'
                ));

        $this->addDisplayGroup(array(
        $submit
        ), 'gr-submit', array(
        'order' => 999,
        'class' =>'resendakt'
        ));
    }



}